var app = getApp()

Page({

  /**
   * 页面的初始数据
   */
  data: {
    navbar: ['关注', '发现', '同城'],
    currentTab: 0,
    secVideo:[
      {
        src: 'https://xcx.rongbaiwei.com/public/upload/api/video/movie.mp4'
      },{
        src: 'https://xcx.rongbaiwei.com/public/upload/api/video/movie.mp4'
      }, {
        src: 'https://xcx.rongbaiwei.com/public/upload/api/video/movie.mp4'
      }, {
        src: 'https://xcx.rongbaiwei.com/public/upload/api/video/movie.mp4'
      }, {
        src: 'https://xcx.rongbaiwei.com/public/upload/api/video/movie.mp4'
      }, {
        src: 'https://xcx.rongbaiwei.com/public/upload/api/video/movie.mp4'
      }
    ],
  },
  navbarTap: function (e) {
    this.setData({
      currentTab: e.currentTarget.dataset.idx
    })
  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    wx.showModal({
      title: '该功能暂未开放',
      content: '请回到首页',
      showCancel:false,
      success:function(res){
        wx.switchTab({
          url: '../../pages/index/index'
        }) 
      }
    })
  },

})